package com.wqr.it.ecwdr.web;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.wqr.it.ecwdr.dto.CountryDto;
import com.wqr.it.ecwdr.service.CountryService;

@RestController
@RequestMapping("/sys")
public class SystemController {
	@Autowired
	private CountryService countryService;

	@RequestMapping("/country")
	public List<CountryDto> findCountryAll() {
		return countryService.findCountryAll();
	}
}
